/**
 * @desc
 *
 * @使用场景
 *
 * @author  杨晓东[of1081]
 * @company qianmi.com
 * @Date    15/8/21
 **/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * 返回正确的信息
 * @returns {{result: string, data: *, message: string}}
 */
function resultSucess(data) {
    return { result: 'ok', data: data, message: '操作成功' };
}
exports.resultSucess = resultSucess;
/**
 * 失败的操作．
 * @param data
 * @returns {{result: string, data: *, message: string}}
 */
function resultfailure(data) {
    return { result: "error", message: data };
}
exports.resultfailure = resultfailure;
